function getParams() {
  let flag = false;
  let params = new URLSearchParams(location.href.split("?")[1]);
  try {
    if (params.get("mock")) {
      flag = true;
    }
  } catch (error) {}
  if (NODE_MOCK1) {
    flag = true;
  }
  return flag;
}

export default getParams;
